package com.xx.ch05.home.home03;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 许欣
 * 时间：2022/4/16 14:35
 * 描述：
 */
public class test {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Equip equip= (Equip) context.getBean("ShenArmet");


        Player player= (Player) context.getBean("zhang");
        player.updateEquip(equip);
    }
}
